#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
int main()
{
    char a[50] = { 0 }, b[50] = { 0 };
    scanf("%s", &a);
    int len = strlen(a);
    int j = 0;
    for (int i = 0; i < len; i++)
    {
        if (a[i] >= 48 && a[i] <= 57)
        {
            b[j] = a[i];
            j++;
        }
    }
    for (int i = 0; i < len; i++)
    {
        if (a[i] < 48 || a[i] > 57)
        {
            b[j] = a[i];
            j++;
        }
    }
    printf("%s", b);
    return 0;
}